﻿@{
	Layout = null;
}
@model OASys.Web.Areas.ModuleExecutive.Models.ModelApplyHolidayIndex
<div class="common-table-container">
	<table class="common-table" id="common-table">
		<colgroup>
			<col width="40" />
			<col width="45" />
			<col width="45" />
			<col width="150" />
			<col width="150" />
			<col width="100" />
			<col width="150" />
			<col width="400" />
			<col width="150" />
		</colgroup>
		<thead>
			<tr>
				<th>
					<input type="checkbox" class="common-table-checkbox-all" />
				</th>
				<th colspan="2">
					操作
				</th>
				@Html.HiddenFor(x => x.SearchEntity._OrderName, new { data_order_name = "" })
				@Html.HiddenFor(x => x.SearchEntity._OrderDirection, new { data_order_direction = "" })
				@(Html.ThOrderHelper<OASys.Entity.UTApplyHoliday>(x => x.BeginTime, "开始时间"))
				@(Html.ThOrderHelper<OASys.Entity.UTApplyHoliday>(x => x.EndTime, "结束时间"))
				@(Html.ThOrderHelper<OASys.Entity.UTApplyHoliday>(x => x.Hours, "请假小时数"))
				@(Html.ThOrderHelper<OASys.Entity.UTApplyHoliday>(x => x.HolidayType, "请假类型"))
				@(Html.ThOrderHelper<OASys.Entity.UTApplyHoliday>(x => x.Remark, "请假原因"))
				@(Html.ThOrderHelper<OASys.Entity.UTApplyHoliday>(x => x.InputDate, "录入时间"))
			</tr>
		</thead>
		<tbody>
			@foreach (var item in Model.UTApplyHolidayCollection)
   {
				<tr ondblclick="javascript:show('@item.ID');">
					<td>
						<input type="checkbox" name="checkboxItem" class="checkboxItem" value="@item.ID" />
					</td>
					<td>
						<a href="javascript:editApplyHoliday('@item.ID')" class="a-edit" title="修改">&nbsp</a>
					</td>
					<td>
						<a href="javascript:deleteApplyHoliday('@item.ID')" class="a-delete" title="删除">&nbsp</a>
					</td>
					<td title="@item.BeginTime">
						@item.BeginTime
					</td>
					<td title="@item.EndTime">
						@item.EndTime
					</td>
					<td title="@item.Hours">
						@item.Hours
					</td>
					<td title="@item.HolidayType">
						@(Model.ListSysCodeInfo(EnumSysCodeInfoType.HolidayType).FirstOrDefault(x => x.Code == item.HolidayType).Name)
					</td>
					<td title="@item.Remark">
						@item.Remark
					</td>
					<td title="@item.InputDate">
						@RazorWidget.RenderDate(item.InputDate, "yyyy-MM-dd")
					</td>
				</tr>
   }
		</tbody>
	</table>
</div>
<div>
	@{
		Html.RenderPartial("/Views/Controls/PaginateAjax.cshtml", Model.PaginateHelperObject);
	}
</div>
